package com.kgc.work.workmanagerservice.service;

import com.kgc.work.bean.Workorder;
import com.kgc.work.service.WorkService;
import com.kgc.work.workmanagerservice.mapper.WorkorderMapper;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WorkServiceImpl implements WorkService {
    @Resource
    WorkorderMapper workorderMapper;
    @Override
    public Integer addWork(Workorder workorder) {
        return workorderMapper.insert(workorder);
    }

    @Override
    public List<Workorder> getAllWork() {
        return workorderMapper.selectByExample(null);
    }
}
